<?
include('form.php');

?>

<div class="form" >
<legend>
<form style="width:100%;" action="<?=$PHP_SELF?>" >
<?judul('Create New Form');?>

<?input('Judul Form','judul');?>
<?input('Label Field','label');?>
<?input('Nama Field','nama');?>
<?input('Action','action');?>

<?button('button','Generate',"onclick='generate_form()'");?><?button('button','Live');?>


</form>

</legend>
<div style="clear:both;" ></div>
</div>
<script type="text/javascript" >


function generate_form()
{
var judul=$('#judul').val();
var label=$('#label').val();
var nama=$('#nama').val();
var action=$('#action').val();
  $('#result_form').load('generate_form.php',{judul:judul,label:label,nama:nama,action:action});
 
}



</script>